package com.example.shopping.pojo;

import java.util.List;

/*
Create by 苍狼 于 2020/1/16
站在巅峰看世界，
落在深渊思人生。
*/
//类型模板
public class TypeTemplate {
    private int id;
    //商品模板
    private String name;
    private String SpecIds;
    private String brandIds;
    //规格
    private List<Specification> specifications;
    //品牌
    private List<Brand> brands;

    public TypeTemplate(int id, String name, String specIds, String brandIds, List<Specification> specifications, List<Brand> brands) {
        this.id = id;
        this.name = name;
        SpecIds = specIds;
        this.brandIds = brandIds;
        this.specifications = specifications;
        this.brands = brands;
    }

    public TypeTemplate(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "TypeTemplate{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", SpecIds='" + SpecIds + '\'' +
                ", brandIds='" + brandIds + '\'' +
                ", specifications=" + specifications +
                ", brands=" + brands +
                '}';
    }

    public List<Specification> getSpecifications() {
        return specifications;
    }

    public void setSpecifications(List<Specification> specifications) {
        this.specifications = specifications;
    }

    public List<Brand> getBrands() {
        return brands;
    }

    public void setBrands(List<Brand> brands) {
        this.brands = brands;
    }

    public TypeTemplate(int id, String name, String specIds, String brandIds) {
        this.id = id;
        this.name = name;
        SpecIds = specIds;
        this.brandIds = brandIds;
    }

    public String getSpecIds() {
        return SpecIds;
    }

    public void setSpecIds(String specIds) {
        SpecIds = specIds;
    }

    public String getBrandIds() {
        return brandIds;
    }

    public void setBrandIds(String brandIds) {
        this.brandIds = brandIds;
    }

    public TypeTemplate(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public TypeTemplate() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
